﻿namespace AbpPlus.Commands
{
	/// <summary>
	/// The command response.
	/// </summary>
	public class CommandResponse
	{
		/// <summary>
		/// The ok.
		/// </summary>
		public static CommandResponse Ok = new CommandResponse { Success = true };

		/// <summary>
		/// The fail.
		/// </summary>
		public static CommandResponse Fail = new CommandResponse { Success = false };

		/// <summary>
		/// Initializes a new instance of the <see cref="CommandResponse"/> class.
		/// </summary>
		/// <param name="success">
		/// The success.
		/// </param>
		public CommandResponse(bool success = false)
		{
			this.Success = success;
		}

		/// <summary>
		/// Gets a value indicating whether success.
		/// </summary>
		public bool Success { get; private set; }
	}
}